#include"SList.h"

void test()
{
	ListNode* newnode = ListCreate();
	ListInit(newnode);
	ListPushBack(newnode, 1);
	ListPushBack(newnode, 2);
	ListPushBack(newnode, 3);
	ListPushBack(newnode, 4);
	ListPopBack(newnode);
	ListPushFront(newnode, 0);
	ListPopFront(newnode);
	ListNode *node=ListFind(newnode, 2);
	ListPrint(newnode);
	ListInsert(node, 100);
	ListPrint(newnode);
	ListErase(node);
	ListPrint(newnode);
	ListDestory(newnode);
	newnode = NULL;
}
int main()
{
	test();
	return 0;

}